Standard escape codes are prefixed with Escape
:
- Ctrl-Key:
^[
- Octal:
\033
- Unicode:
\u001b
- Hexadecimal:
\x1B
- Decimal:
27
/** | |
* updates the balance of the wallet | |
* based on the latest transaction | |
*/ | |
calculateBalance(blockchain){ | |
// store the existing balance | |
let balance = this.balance; |
#!/bin/bash | |
# Ollama Model Export Script | |
# Usage: bash ollama-export.sh vicuna:7b | |
# License: MIT (https://ncurl.xyz/s/RD0Yl5fSg) | |
# https://gist.github.com/supersonictw/f6cf5e599377132fe5e180b3d495c553 | |
set -e | |
echo "Ollama Model Export Script" | |
echo "License: MIT (https://ncurl.xyz/s/RD0Yl5fSg)" |
Learning Rust
The following is a list of resources for learning Rust as well as tips and tricks for learning the language faster.
Warning
Rust is not C or C++ so the way your accustomed to do things in those languages might not work in Rust. The best way to learn Rust is to embrace its best practices and see where that takes you.
The generally recommended path is to start by reading the books, and doing small coding exercises until the rules around borrow checking become intuitive. Once this happens, then you can expand to more real world projects. If you find yourself struggling hard with the borrow checker, seek help. It very well could be that you're trying to solve your problem in a way that goes against how Rust wants you to work.
from maya import OpenMaya as om | |
import numpy as np | |
from ctypes import c_float, c_double, c_int, c_uint | |
_CONVERT_DICT = { | |
om.MPointArray: (float, 4, c_double, om.MScriptUtil.asDouble4Ptr), | |
om.MFloatPointArray: (float, 4, c_float , om.MScriptUtil.asFloat4Ptr), | |
om.MVectorArray: (float, 3, c_double, om.MScriptUtil.asDouble3Ptr), | |
om.MFloatVectorArray: (float, 3, c_float , om.MScriptUtil.asFloat3Ptr), | |
om.MDoubleArray: (float, 1, c_double, om.MScriptUtil.asDoublePtr), |
$/
artifacts/
build/
docs/
lib/
packages/
samples/
src/
tests/
Possible values for ext-name: | |
bcmath | |
bz2 | |
calendar | |
ctype | |
curl | |
dba | |
dom | |
enchant |
Download/Copy all related *.zip files in one directory. | |
Open terminal and change to that directory which has all zip files. | |
Enter command zip -s- FILE_NAME.zip -O COMBINED_FILE.zip | |
Enter unzip COMBINED_FILE.zip |